package com.zn.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * Created by yinjinwei on 2018/7/14.
 * k线对象
 */
public class KLineEntity {
    private String code;  //rb1810
    private Double open;
    private Double close;
    private Double high;
    private Double low;
    private Integer volume;
    private Double tradeAmt;
    private Double positionNum;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date curTime;
    private String  productCode;   //rb
    private String productMonth;
    private Double avgPrc;//当前成交均价（平均值）
    //数据的创建时间
    private String createTime;
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Double getOpen() {
        return open;
    }

    public void setOpen(Double open) {
        this.open = open;
    }

    public Double getClose() {
        return close;
    }

    public void setClose(Double close) {
        this.close = close;
    }

    public Double getHigh() {
        return high;
    }

    public void setHigh(Double high) {
        this.high = high;
    }

    public Double getLow() {
        return low;
    }

    public void setLow(Double low) {
        this.low = low;
    }

    public Integer getVolume() {
        return volume;
    }

    public void setVolume(Integer volume) {
        this.volume = volume;
    }

    public Double getTradeAmt() {
        return tradeAmt;
    }

    public void setTradeAmt(Double tradeAmt) {
        this.tradeAmt = tradeAmt;
    }

    public Double getPositionNum() {
        return positionNum;
    }

    public void setPositionNum(Double positionNum) {
        this.positionNum = positionNum;
    }

    public Date getCurTime() {
        return curTime;
    }
    public void setCurTime(Date curTime) {
        this.curTime = curTime;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductMonth() {
        return productMonth;
    }

    public void setProductMonth(String productMonth) {
        this.productMonth = productMonth;
    }

    public Double getAvgPrc() {
        return avgPrc;
    }

    public void setAvgPrc(Double avgPrc) {
        this.avgPrc = avgPrc;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "KLineEntity{" +
                "code='" + code + '\'' +
                ", open=" + open +
                ", close=" + close +
                ", high=" + high +
                ", low=" + low +
                ", volume=" + volume +
                ", tradeAmt=" + tradeAmt +
                ", positionNum=" + positionNum +
                ", avgPrc=" + avgPrc +
                ", curTime=" + curTime +
                ", productCode='" + productCode + '\'' +
                ", productMonth='" + productMonth + '\'' +
                '}';
    }
}
